<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>表格时间</title>
    <script src="../lib/easytable.js"></script>
    <link type="text/css" rel="stylesheet" href="../lib/easytable.css" />
    <script>
        window.onload = function () {
            let option = {
                cols: [{ title: '序号', type: 'index' }, { title: '名字', field: 'name' },
                { title: '日期', field: 'date', type: 'date' }, { title: '日期时间', field: 'datetime', type: 'datetime-local' }],
                data: [{ name: '张三', date: '2019-01-13', datetime: '2019-03-13T12:27'}, { name: '李四', date: '2019-01-15', datetime: '2019-03-15T20:22'}, { name: '王五', date: '2019-01-11', datetime: '2019-03-10T02:16' }]
            }
            let table = new easytable("table", option);
        }
    </script>
</head>

<body>
    <div id='table'></div>
</body>

</html>